#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QStringList>
#include <QDir>
#include "mcplugins.h"
#include <QtSql>

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void setWindowState(Qt::WindowStates state);

public slots:
    void resizeEvent ( QResizeEvent * event ) {
        qDebug()<<size();
        if(isMaximized()) {
            qDebug() <<"byah";
        }

    }
    void test();
private:
    void selectPlugin(MenuItemInterface * item);
    Ui::MainWindow *ui;
    void loadPlugins();
    GraphicsInterface * graphics;
    QList<MenuItemInterface *> * mainPlugins;
    MenuItemInterface ** mPlugins;
    QSqlDatabase db;
    MenuItemInterface * currentItem;

};

#endif // MAINWINDOW_H
